package com.health.ts.client;

import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Post;
import com.health.ts.constant.ApiResult;

@BaseRequest(
	// 默认域名
	baseURL = "http://127.0.0.1:8088/TS",
	//默认请求头
	headers = {"Accept:application/json"}
)
public interface ForestTestClient {

	/**
	 * 测试redis发布订阅消息
	 * 
	 * @return
	 */
	@Post(url = "/api/test/test-redis-message", dataType = "json")
	ApiResult helloForest();
	
	/**
	 * 访问百度
	 * 
	 * @return
	 */
	@Get(url = "https://www.baidu.com")
	String getBaidu();
}